/*
 * 帮助文档 目录
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const helpCatalogApi = {
  //帮助文档目录-获取全部
  getAll: () => {
    return getRequest('/sys/help/catalog/getAll');
  },

  //帮助文档目录-添加
  add: (param) => {
    return postRequest('/sys/help/catalog/add', param);
  },

  //帮助文档目录-更新
  update: (param) => {
    return postRequest('/sys/help/catalog/update', param);
  },

  //帮助文档目录-删除
  delete: (helpDocCatalogId) => {
    return getRequest(`/sys/help/catalog/delete/${helpDocCatalogId}`);
  },
};
